<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" rev="stylesheet"
	href="${pageContext.request.contextPath}/css/admin/style-admin.css"
	type="text/css" media="all" />

<script src="${pageContext.request.contextPath}/js/jquery.js"
	type="text/javascript"></script>
<script
	src="${pageContext.request.contextPath}/js/jquery.ui.draggable.js"
	type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/jquery.alerts.js"
	type="text/javascript"></script>
<link href="${pageContext.request.contextPath}/css/jquery.alerts.css"
	rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">

	window.onload = function generateIndexPage(){
		$.ajax({
		    url: document.getElementById("contextPath").value+'/admin/generateIndexPage',
		    type: 'POST',
		    timeout: 15000,
		    error: function(){
		    	jAlert('获取数据失败','消息');
		    },
		    success: function(msg){
		    	jAlert(msg,'消息');
		    }
		});
	}
</script>
</head>
 
<body>
<input type="hidden" id="contextPath" value="${pageContext.request.contextPath}">
</body>
</html>